package com.fpx.metadata.bean.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import java.util.Date;
import javax.persistence.*;

@Table(name = "tables")
@Data
@ApiModel(value = "表信息")
public class Tables {

    @Id
    @KeySql(useGeneratedKeys = true)
    @ApiModelProperty(value = "id")
    private Long id;

    @Column(name = "table_schema_id")
    @ApiModelProperty(value = "库id")
    private Long tableSchemaId;

    @Column(name = "table_schema")
    @ApiModelProperty(value = "库名")
    private String tableSchema;

    @Column(name = "table_name")
    @ApiModelProperty(value = "表名")
    private String tableName;

    @Column(name = "table_type")
    @ApiModelProperty(value = "数据库类型")
    private String tableType;

    @Column(name = "engine")
    @ApiModelProperty(value = "引擎")
    private String engine;

    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @Column(name = "table_collation")
    @ApiModelProperty(value = "排序规则")
    private String tableCollation;

    @Column(name = "table_comment")
    @ApiModelProperty(value = "描述")
    private String tableComment;
}